.class Lcom/nemustech/regina/DialogCare$22;
.super Ljava/lang/Object;
.source "DialogCare.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/DialogCare;->createDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/DialogCare;

.field final synthetic val$bSecret:Z

.field final synthetic val$etName:Landroid/widget/EditText;

.field final synthetic val$uid:I


# direct methods
.method constructor <init>(Lcom/nemustech/regina/DialogCare;Landroid/widget/EditText;IZ)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 849
    iput-object p1, p0, Lcom/nemustech/regina/DialogCare$22;->this$0:Lcom/nemustech/regina/DialogCare;

    iput-object p2, p0, Lcom/nemustech/regina/DialogCare$22;->val$etName:Landroid/widget/EditText;

    iput p3, p0, Lcom/nemustech/regina/DialogCare$22;->val$uid:I

    iput-boolean p4, p0, Lcom/nemustech/regina/DialogCare$22;->val$bSecret:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4
    .parameter "dialog"
    .parameter "whichButton"

    .prologue
    .line 851
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare$22;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v0}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->dismissDialog(I)V

    .line 852
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare$22;->val$etName:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-gez v0, :cond_0

    .line 855
    :goto_0
    return-void

    .line 853
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare$22;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v0}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    iget v1, p0, Lcom/nemustech/regina/DialogCare$22;->val$uid:I

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$22;->val$etName:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iget-boolean v3, p0, Lcom/nemustech/regina/DialogCare$22;->val$bSecret:Z

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/regina/ReginaPreference;->setWorkspaceName(ILjava/lang/String;Z)V

    .line 854
    iget-object v0, p0, Lcom/nemustech/regina/DialogCare$22;->this$0:Lcom/nemustech/regina/DialogCare;

    const/16 v1, 0xb

    invoke-static {v0, v1}, Lcom/nemustech/regina/DialogCare;->access$800(Lcom/nemustech/regina/DialogCare;I)V

    goto :goto_0
.end method
